package com.dai.rpc.annotation;

import com.dai.rpc.bean.MyBeanDefinitionRegistry;
import com.dai.rpc.spring.MyRpcSpringBeanPostProcessor;
import org.springframework.context.annotation.Import;

import java.lang.annotation.*;

@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
@Import(MyRpcSpringBeanPostProcessor.class)
public @interface EnableRpcClient {

    // zookeeper主机
    String zookeeperHost() default "49.235.112.159";
    // zookeeper端口号
    int zookeeperPort() default 2181;
    // zookeeper组
    String zookeeperGroup() default "myRPC";
    // server服务端口
    int serverPort() default 13567;
    // 负载均衡策略
    String loadBalance() default "random";

}
